<script type="text/javascript">
function js_select_row_per_page()
{
	str_g_hidden_base_url 	= document.getElementById('g_hidden_base_url').value;
	str_g_row_per_page		= document.getElementById('g_row_per_page').value;
	window.location.href	= str_g_hidden_base_url + '/router/img_router/set_row_per_page/'+str_g_row_per_page;
}
function js_select_current_page()
{
	str_g_hidden_base_url 	= document.getElementById('g_hidden_base_url').value;
	str_g_current_page		= document.getElementById('g_current_page').value;
	window.location.href	= str_g_hidden_base_url + '/router/img_router/set_current_page/'+str_g_current_page;

}
function js_select_next_page()
{
	str_g_hidden_base_url 	= document.getElementById('g_hidden_base_url').value;
	window.location.href	= str_g_hidden_base_url + '/router/img_router/set_next_page';

}
function js_select_previous_page()
{
	str_g_hidden_base_url 	= document.getElementById('g_hidden_base_url').value;
	window.location.href	= str_g_hidden_base_url + '/router/img_router/set_previous_page';
}
function js_delete_object()
{
	if(js_CheckValidBeforeDeleteListview('chkItems'))
	{
		str_g_hidden_base_url 		= document.getElementById('g_hidden_base_url').value;
		document.form_main.action	= str_g_hidden_base_url + '/router/img_router/delete_object';
		document.form_main.submit();
	}
}
function js_add_object()
{
	str_g_hidden_base_url 		= document.getElementById('g_hidden_base_url').value;
	document.form_main.action	= str_g_hidden_base_url + '/router/img_router/add_new_object';
	document.form_main.submit();
}
function js_edit_object(p_nid)
{
	str_g_hidden_base_url 		= document.getElementById('g_hidden_base_url').value;
	window.location.href		= str_g_hidden_base_url + '/router/img_router/edit_object/'+p_nid;
}
function js_advance_search()
{
	str_g_hidden_base_url 	= document.getElementById('g_hidden_base_url').value;
	window.location.href	= str_g_hidden_base_url + '/router/img_router/advance_search';
} 
function js_sort_object(field_name, sort_mode)
{
	str_g_hidden_base_url 	= document.getElementById('g_hidden_base_url').value;
	window.location.href	= str_g_hidden_base_url + '/router/img_router/sort_object/'+field_name+'/'+sort_mode;
}
function js_print_object()
{
}
function js_export_object()
{
}
function js_select_object_detail()
{
}
function js_object_permission(p_nid)
{
	str_g_hidden_base_url 		= document.getElementById('g_hidden_base_url').value;
	window.location.href		= str_g_hidden_base_url + '/router/img_router/object_permission/'+p_nid;
}
</script>